package cn.itcast.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {
    @RequestMapping("fallbackTest")
    public Map<String,String> fallbackController(){
        Map<String,String> res=new HashMap<>();
        res.put("msg","服务超时");
        res.put("code","502");
        return res;
    }
}
